package com.woniu.service.impl;

import com.woniu.dao.ActivityMapper;
import com.woniu.dto.ActivityDTO;
import com.woniu.pojo.PropertyManage;
import com.woniu.service.ActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class ActivityServiceImpl implements ActivityService {

    @Autowired
    private ActivityMapper activityMapper;

    @Override
    public List<ActivityDTO> findListByPage(Integer currentPage, Integer pageSize) {
        List<ActivityDTO> list=activityMapper.findByPage(currentPage,pageSize);
        return list;
    }

    @Override
    public void editStatusById(Integer id,Date examineTime) {
        activityMapper.editStatusById(id,examineTime);
    }

    @Override
    public List<ActivityDTO> select(String name, Integer status) {
        List<ActivityDTO> list=activityMapper.select(name,status);
        return list;
    }

    @Override
    public void refuse(Integer id, Date examineTime) {
        activityMapper.refuse(id,examineTime);
    }
}
